package mvc;

import javax.swing.*;
import java.awt.Dimension;
import java.awt.Rectangle;
import java.awt.Font;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.Point;
import javax.swing.SwingConstants;
import javax.swing.JButton;

public class AgendaControl extends JFrame {

	private static final long serialVersionUID = -8828574908789790711L;
	AgendaModel model;
	private JDesktopPane Agenda = null;  //  @jve:decl-index=0:visual-constraint="368,-88"
	private JLabel um = null;
	private JLabel dois = null;
	private JLabel tres = null;
	private JLabel quatro = null;
	private JLabel cinco = null;
	private JLabel seis = null;
	private JLabel sete = null;
	private JLabel oito = null;
	private JLabel nove = null;
	private JLabel Dez = null;
	private JLabel onze = null;
	private JLabel doze = null;
	private JLabel treze = null;
	private JLabel quatorze = null;
	private JLabel quinze = null;
	private JLabel dezesseis = null;
	private JLabel dezessete = null;
	private JLabel dezoito = null;
	private JLabel vinteum = null;
	private JLabel vintedois = null;
	private JLabel vintetres = null;
	private JLabel vintequatro = null;
	private JLabel vintecinco = null;
	private JLabel vinteseis = null;
	private JLabel vintesete = null;
	private JLabel vinteoito = null;
	private JLabel vintenove = null;
	private JLabel trinta = null;
	private JLabel trintaum = null;
	private JLabel trintadois = null;
	private JLabel trintatres = null;
	private JLabel trintaquatro = null;
	private JLabel trintacinco = null;
	private JLabel trintaseis = null;
	private JLabel trintasete = null;
	private JLabel trintaoito = null;
	private JLabel trintanove = null;
	private JLabel quarenta = null;
	private JLabel quarentaum = null;
	private JLabel quarentadois = null;
	private JTextField MostrarNomeMedico = null;
	private JTextField Datahoje = null;
	private JLabel dezenove = null;
	private JLabel vinte = null;
	private JTextField nomePaciente = null;
	private JLabel Explicativo = null;
	private JLabel Explicativo1 = null;
	private JButton BuscaAg = null;
	private JTextField mostrarPront = null;
	private JTextField nomePaciente1 = null;
	private JTextField nomePaciente2 = null;
	private JTextField nomePaciente3 = null;
	private JTextField nomePaciente4 = null;
	private JTextField nomePaciente5 = null;
	private JTextField nomePaciente6 = null;
	private JTextField nomePaciente7 = null;
	private JTextField nomePaciente8 = null;
	private JTextField nomePaciente9 = null;
	private JTextField nomePaciente10 = null;
	private JTextField nomePaciente11 = null;
	private JTextField nomePaciente12 = null;
	private JTextField nomePaciente13 = null;
	private JTextField nomePaciente14 = null;
	private JTextField nomePaciente15 = null;
	private JTextField nomePaciente16 = null;
	private JTextField nomePaciente17 = null;
	private JTextField nomePaciente18 = null;
	private JTextField nomePaciente19 = null;
	private JTextField nomePaciente20 = null;
	private JTextField nomePaciente21 = null;
	private JTextField nomePaciente22 = null;
	private JTextField nomePaciente23 = null;
	private JTextField nomePaciente24 = null;
	private JTextField nomePaciente25 = null;
	private JTextField nomePaciente26 = null;
	private JTextField nomePaciente27 = null;
	private JTextField nomePaciente28 = null;
	private JTextField nomePaciente29 = null;
	private JTextField nomePaciente30 = null;
	private JTextField nomePaciente31 = null;
	private JTextField nomePaciente32 = null;
	private JTextField nomePaciente33 = null;
	private JTextField nomePaciente34 = null;
	private JTextField nomePaciente35 = null;
	private JTextField nomePaciente36 = null;
	private JTextField nomePaciente37 = null;
	private JTextField nomePaciente38 = null;
	private JTextField nomePaciente39 = null;
	private JTextField nomePaciente40 = null;
	private JTextField nomePaciente41 = null;
	private JTextField mostrarPront1 = null;
	private JTextField mostrarPront2 = null;
	private JTextField mostrarPront3 = null;
	private JTextField mostrarPront4 = null;
	private JTextField mostrarPront5 = null;
	private JTextField mostrarPront6 = null;
	private JTextField mostrarPront7 = null;
	private JTextField mostrarPront8 = null;
	private JTextField mostrarPront9 = null;
	private JTextField mostrarPront10 = null;
	private JTextField mostrarPront11 = null;
	private JTextField mostrarPront12 = null;
	private JTextField mostrarPront13 = null;
	private JTextField mostrarPront14 = null;
	private JTextField mostrarPront15 = null;
	private JTextField mostrarPront16 = null;
	private JTextField mostrarPront17 = null;
	private JTextField mostrarPront18 = null;
	private JTextField mostrarPront19 = null;
	private JTextField mostrarPront20 = null;
	private JTextField mostrarPront21 = null;
	private JTextField mostrarPront22 = null;
	private JTextField mostrarPront23 = null;
	private JTextField mostrarPront24 = null;
	private JTextField mostrarPront25 = null;
	private JTextField mostrarPront26 = null;
	private JTextField mostrarPront27 = null;
	private JTextField mostrarPront28 = null;
	private JTextField mostrarPront29 = null;
	private JTextField mostrarPront30 = null;
	private JTextField mostrarPront31 = null;
	private JTextField mostrarPront32 = null;
	private JTextField mostrarPront33 = null;
	private JTextField mostrarPront34 = null;
	private JTextField mostrarPront35 = null;
	private JTextField mostrarPront36 = null;
	private JTextField mostrarPront37 = null;
	private JTextField mostrarPront38 = null;
	private JTextField mostrarPront39 = null;
	private JTextField mostrarPront40 = null;
	private JTextField mostrarPront41 = null;
	private JButton botaoExcluir = null;
	private JButton botaoExcluir1 = null;
	private JButton botaoExcluir2 = null;
	private JButton botaoExcluir3 = null;
	private JButton botaoExcluir4 = null;
	private JButton botaoExcluir5 = null;
	private JButton botaoExcluir6 = null;
	private JButton botaoExcluir7 = null;
	private JButton botaoExcluir8 = null;
	private JButton botaoExcluir9 = null;
	private JButton botaoExcluir10 = null;
	private JButton botaoExcluir11 = null;
	private JButton botaoExcluir12 = null;
	private JButton botaoExcluir13 = null;
	private JButton botaoExcluir14 = null;
	private JButton botaoExcluir15 = null;
	private JButton botaoExcluir16 = null;
	private JButton botaoExcluir17 = null;
	private JButton botaoExcluir18 = null;
	private JButton botaoExcluir19 = null;
	private JButton botaoExcluir20 = null;
	private JButton botaoExcluir21 = null;
	private JButton botaoExcluir22 = null;
	private JButton botaoExcluir23 = null;
	private JButton botaoExcluir24 = null;
	private JButton botaoExcluir25 = null;
	private JButton botaoExcluir26 = null;
	private JButton botaoExcluir27 = null;
	private JButton botaoExcluir28 = null;
	private JButton botaoExcluir29 = null;
	private JButton botaoExcluir30 = null;
	private JButton botaoExcluir31 = null;
	private JButton botaoExcluir32 = null;
	private JButton botaoExcluir33 = null;
	private JButton botaoExcluir34 = null;
	private JButton botaoExcluir35 = null;
	private JButton botaoExcluir36 = null;
	private JButton botaoExcluir37 = null;
	private JButton botaoExcluir38 = null;
	private JButton botaoExcluir39 = null;
	private JButton botaoExcluir40 = null;
	private JButton botaoExcluir41 = null;

	/**
	 * This method initializes jDesktopPane	
	 * 	
	 * @return javax.swing.JDesktopPane	
	 * 
	 */
	public AgendaControl() {
		// Prontuario = getProntuario();
		// setVisible(true);
		setContentPane(getAgenda());
		this.setSize(900, 1024);
		setTitle("Agenda");
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		System.out.println("Iniciado");
	}



	private JDesktopPane getAgenda() {
		if (Agenda == null) {

			Explicativo1 = new JLabel();
			Explicativo1.setBounds(new Rectangle(500, 6, 128, 26));
			Explicativo1.setFont(new Font("DialogInput", Font.BOLD, 12));
			Explicativo1.setText("Abrir Agenda Dia:");

			Explicativo = new JLabel();
			Explicativo.setBounds(new Rectangle(18, 6, 181, 26));
			Explicativo.setFont(new Font("DialogInput", Font.BOLD, 12));
			Explicativo.setText("Digite o Nome do Medico: ");


			quarentadois = new JLabel();
			quarentadois.setBounds(new Rectangle(87, 1458, 38, 15));
			quarentadois.setText("20h40");
			quarentadois.setLocation(new Point(18, 1022));
			quarentadois.setFont(new Font("DialogInput", Font.BOLD, 12));
			quarentadois.setSize(new Dimension(86, 24));

			quarentaum = new JLabel();
			quarentaum.setBounds(new Rectangle(75, 1429, 38, 15));
			quarentaum.setText("20h20");
			quarentaum.setLocation(new Point(18, 998));
			quarentaum.setFont(new Font("DialogInput", Font.BOLD, 12));
			quarentaum.setSize(new Dimension(86, 24));

			quarenta = new JLabel();
			quarenta.setBounds(new Rectangle(70, 1406, 38, 15));
			quarenta.setText("20h00");
			quarenta.setLocation(new Point(18, 974));
			quarenta.setFont(new Font("DialogInput", Font.BOLD, 12));
			quarenta.setSize(new Dimension(86, 24));

			trintanove = new JLabel();
			trintanove.setBounds(new Rectangle(59, 1359, 38, 15));
			trintanove.setText("19h40");
			trintanove.setLocation(new Point(18, 950));
			trintanove.setFont(new Font("DialogInput", Font.BOLD, 12));
			trintanove.setSize(new Dimension(86, 24));

			trintaoito = new JLabel();
			trintaoito.setBounds(new Rectangle(58, 1323, 38, 15));
			trintaoito.setText("19h20");
			trintaoito.setLocation(new Point(18, 926));
			trintaoito.setFont(new Font("DialogInput", Font.BOLD, 12));
			trintaoito.setSize(new Dimension(86, 24));

			trintasete = new JLabel();
			trintasete.setBounds(new Rectangle(49, 1284, 38, 15));
			trintasete.setText("19h00");
			trintasete.setLocation(new Point(18, 902));
			trintasete.setFont(new Font("DialogInput", Font.BOLD, 12));
			trintasete.setSize(new Dimension(86, 24));

			trintaseis = new JLabel();
			trintaseis.setBounds(new Rectangle(51, 1253, 38, 15));
			trintaseis.setText("18h40");
			trintaseis.setLocation(new Point(18, 878));
			trintaseis.setFont(new Font("DialogInput", Font.BOLD, 12));
			trintaseis.setSize(new Dimension(86, 24));

			trintacinco = new JLabel();
			trintacinco.setBounds(new Rectangle(49, 1221, 38, 15));
			trintacinco.setText("18h20");
			trintacinco.setLocation(new Point(18, 854));
			trintacinco.setFont(new Font("DialogInput", Font.BOLD, 12));
			trintacinco.setSize(new Dimension(86, 24));

			trintaquatro = new JLabel();
			trintaquatro.setBounds(new Rectangle(48, 1188, 38, 15));
			trintaquatro.setText("18h00");
			trintaquatro.setLocation(new Point(18, 830));
			trintaquatro.setFont(new Font("DialogInput", Font.BOLD, 12));
			trintaquatro.setSize(new Dimension(86, 24));

			trintatres = new JLabel();
			trintatres.setBounds(new Rectangle(49, 1156, 38, 15));
			trintatres.setText("17h40");
			trintatres.setLocation(new Point(18, 806));
			trintatres.setFont(new Font("DialogInput", Font.BOLD, 12));
			trintatres.setSize(new Dimension(86, 24));

			trintadois = new JLabel();
			trintadois.setBounds(new Rectangle(45, 1121, 38, 15));
			trintadois.setText("17h20");
			trintadois.setLocation(new Point(18, 782));
			trintadois.setFont(new Font("DialogInput", Font.BOLD, 12));
			trintadois.setSize(new Dimension(86, 24));

			trintaum = new JLabel();
			trintaum.setBounds(new Rectangle(40, 1079, 38, 15));
			trintaum.setText("17h00");
			trintaum.setLocation(new Point(18, 758));
			trintaum.setFont(new Font("DialogInput", Font.BOLD, 12));
			trintaum.setSize(new Dimension(86, 24));

			trinta = new JLabel();
			trinta.setBounds(new Rectangle(39, 1043, 38, 15));
			trinta.setText("16h40");
			trinta.setLocation(new Point(18, 734));
			trinta.setFont(new Font("DialogInput", Font.BOLD, 12));
			trinta.setSize(new Dimension(86, 24));

			vintenove = new JLabel();
			vintenove.setBounds(new Rectangle(42, 964, 38, 15));
			vintenove.setText("16h20");
			vintenove.setLocation(new Point(18, 710));
			vintenove.setFont(new Font("DialogInput", Font.BOLD, 12));
			vintenove.setSize(new Dimension(86, 24));

			vinteoito = new JLabel();
			vinteoito.setBounds(new Rectangle(34, 1006, 38, 15));
			vinteoito.setText("16h00");
			vinteoito.setLocation(new Point(18, 686));
			vinteoito.setFont(new Font("DialogInput", Font.BOLD, 12));
			vinteoito.setSize(new Dimension(86, 24));

			vintesete = new JLabel();
			vintesete.setBounds(new Rectangle(44, 928, 38, 15));
			vintesete.setText("15h40");
			vintesete.setLocation(new Point(18, 662));
			vintesete.setFont(new Font("DialogInput", Font.BOLD, 12));
			vintesete.setSize(new Dimension(86, 24));

			vinteseis = new JLabel();
			vinteseis.setBounds(new Rectangle(36, 886, 38, 15));
			vinteseis.setText("15h20");
			vinteseis.setLocation(new Point(18, 638));
			vinteseis.setFont(new Font("DialogInput", Font.BOLD, 12));
			vinteseis.setSize(new Dimension(86, 24));

			vintecinco = new JLabel();
			vintecinco.setBounds(new Rectangle(31, 854, 38, 15));
			vintecinco.setText("15h00");
			vintecinco.setLocation(new Point(18, 614));
			vintecinco.setFont(new Font("DialogInput", Font.BOLD, 12));
			vintecinco.setSize(new Dimension(86, 24));

			vintequatro = new JLabel();
			vintequatro.setBounds(new Rectangle(27, 788, 153, 36));
			vintequatro.setText("14h40");
			vintequatro.setLocation(new Point(18, 590));
			vintequatro.setFont(new Font("DialogInput", Font.BOLD, 12));
			vintequatro.setSize(new Dimension(86, 24));

			vintetres = new JLabel();
			vintetres.setBounds(new Rectangle(32, 758, 38, 15));
			vintetres.setText("14h20");
			vintetres.setLocation(new Point(18, 566));
			vintetres.setFont(new Font("DialogInput", Font.BOLD, 12));
			vintetres.setSize(new Dimension(86, 24));

			vintedois = new JLabel();
			vintedois.setBounds(new Rectangle(28, 718, 127, 30));
			vintedois.setText("14h00");
			vintedois.setLocation(new Point(18, 542));
			vintedois.setFont(new Font("DialogInput", Font.BOLD, 12));
			vintedois.setSize(new Dimension(86, 24));

			vinteum = new JLabel();
			vinteum.setBounds(new Rectangle(22, 666, 172, 30));
			vinteum.setText("13h40");
			vinteum.setLocation(new Point(18, 518));
			vinteum.setFont(new Font("DialogInput", Font.BOLD, 12));
			vinteum.setSize(new Dimension(86, 24));

			vinte = new JLabel();
			vinte.setBounds(new Rectangle(22, 443, 38, 15));
			vinte.setText("13h20");
			vinte.setLocation(new Point(18, 494));
			vinte.setFont(new Font("DialogInput", Font.BOLD, 12));
			vinte.setSize(new Dimension(86, 24));

			dezenove = new JLabel();
			dezenove.setBounds(new Rectangle(17, 396, 105, 32));
			dezenove.setText("13h00");
			dezenove.setLocation(new Point(18, 470));
			dezenove.setFont(new Font("DialogInput", Font.BOLD, 12));
			dezenove.setSize(new Dimension(86, 24));

			dezoito = new JLabel();
			dezoito.setBounds(new Rectangle(29, 639, 38, 15));
			dezoito.setText("12h40");
			dezoito.setLocation(new Point(18, 446));
			dezoito.setFont(new Font("DialogInput", Font.BOLD, 12));
			dezoito.setSize(new Dimension(86, 24));

			dezessete = new JLabel();
			dezessete.setBounds(new Rectangle(160, 523, 163, 30));
			dezessete.setText("12h20");
			dezessete.setLocation(new Point(18,422));
			dezessete.setFont(new Font("DialogInput", Font.BOLD, 12));
			dezessete.setSize(new Dimension (43,24));

			dezesseis = new JLabel();
			dezesseis.setBounds(new Rectangle(24, 531, 130, 30));
			dezesseis.setText("12h00");
			dezesseis.setLocation(new Point(18, 398));
			dezesseis.setFont(new Font("DialogInput", Font.BOLD, 12));
			dezesseis.setSize(new Dimension(86, 24));

			quinze = new JLabel();
			quinze.setBounds(new Rectangle(29, 478, 110, 29));
			quinze.setLocation(new Point(18, 374));
			quinze.setSize(new Dimension(86, 24));
			quinze.setFont(new Font("DialogInput", Font.BOLD, 12));
			quinze.setText("11h40");

			quatorze = new JLabel();
			quatorze.setText("11h20");
			quatorze.setSize(new Dimension(86, 24));
			quatorze.setFont(new Font("DialogInput", Font.BOLD, 12));
			quatorze.setLocation(new Point(18, 350));

			treze = new JLabel();
			treze.setText("11h00");
			treze.setSize(new Dimension(86, 24));
			treze.setFont(new Font("DialogInput", Font.BOLD, 12));
			treze.setLocation(new Point(18, 326));

			doze = new JLabel();
			doze.setText("10h40");
			doze.setFont(new Font("DialogInput", Font.BOLD, 12));
			doze.setLocation(new Point(18, 302));
			doze.setSize(new Dimension(86, 24));

			onze = new JLabel();
			onze.setFont(new Font("DialogInput", Font.BOLD, 12));
			onze.setLocation(new Point(18, 278));
			onze.setSize(new Dimension(86, 24));
			onze.setText("10h20");

			Dez = new JLabel();
			Dez.setFont(new Font("DialogInput", Font.BOLD, 12));
			Dez.setLocation(new Point(18, 254));
			Dez.setSize(new Dimension(86, 24));
			Dez.setText("10h00");

			nove = new JLabel();
			nove.setFont(new Font("DialogInput", Font.BOLD, 12));
			nove.setLocation(new Point(18, 230));
			nove.setSize(new Dimension(86, 24));
			nove.setText("9h40");

			oito = new JLabel();
			oito.setFont(new Font("DialogInput", Font.BOLD, 12));
			oito.setLocation(new Point(18, 206));
			oito.setSize(new Dimension(86, 24));
			oito.setText("9h20");

			sete = new JLabel();
			sete.setFont(new Font("DialogInput", Font.BOLD, 12));
			sete.setLocation(new Point(18,182));
			sete.setSize(new Dimension(86, 24));
			sete.setText("9h00");

			seis = new JLabel();
			seis.setText("8h40");
			seis.setSize(new Dimension(86, 24));
			seis.setFont(new Font("DialogInput", Font.BOLD, 12));
			seis.setLocation(new Point(18, 158));

			cinco = new JLabel();
			cinco.setText("8h20");
			cinco.setSize(new Dimension(86, 24));
			cinco.setFont(new Font("DialogInput", Font.BOLD, 12));
			cinco.setLocation(new Point(18, 134));

			quatro = new JLabel();
			quatro.setText("8h00");
			quatro.setSize(new Dimension(86, 24));
			quatro.setFont(new Font("DialogInput", Font.BOLD, 12));
			quatro.setLocation(new Point(18, 110));

			tres = new JLabel();
			tres.setSize(new Dimension(86, 24));
			tres.setName("sete2");
			tres.setFont(new Font("DialogInput", Font.BOLD, 12));
			tres.setLocation(new Point(18, 86));
			tres.setText("7h40");

			dois = new JLabel();
			dois.setFont(new Font("DialogInput", Font.BOLD, 12));
			dois.setLocation(new Point(18, 62));
			dois.setSize(new Dimension(86, 24));
			dois.setText("7h20");

			um = new JLabel();
			um.setVerticalTextPosition(SwingConstants.CENTER);
			um.setVerticalAlignment(SwingConstants.CENTER);
			um.setFont(new Font("DialogInput", Font.BOLD, 12));
			um.setLocation(new Point(18, 38));
			um.setSize(new Dimension(86, 24));
			um.setText("7h00");

			Agenda = new JDesktopPane();
			Agenda.setSize(new Dimension(832, 1062));
			Agenda.setFont(new Font("DialogInput", Font.PLAIN, 12));
			Agenda.setLayout(null);
			Agenda.setVisible(true);

			Agenda.add(um, null);
			Agenda.add(dois, null);
			Agenda.add(tres, null);
			Agenda.add(quatro, null);
			Agenda.add(cinco, null);
			Agenda.add(seis, null);
			Agenda.add(sete, null);
			Agenda.add(oito, null);
			Agenda.add(nove, null);
			Agenda.add(Dez, null);
			Agenda.add(onze, null);
			Agenda.add(doze, null);
			Agenda.add(treze, null);
			Agenda.add(quatorze, null);
			Agenda.add(quinze, null);
			Agenda.add(dezesseis, null);
			Agenda.add(dezessete, null);
			Agenda.add(dezoito, null);
			Agenda.add(vinteum, null);
			Agenda.add(vintedois, null);
			Agenda.add(vintetres, null);
			Agenda.add(vintequatro, null);
			Agenda.add(vintecinco, null);
			Agenda.add(vinteseis, null);
			Agenda.add(vintesete, null);
			Agenda.add(vinteoito, null);
			Agenda.add(vintenove, null);
			Agenda.add(trinta, null);
			Agenda.add(trintaum, null);
			Agenda.add(trintadois, null);
			Agenda.add(trintatres, null);
			Agenda.add(trintaquatro, null);
			Agenda.add(trintacinco, null);
			Agenda.add(trintaseis, null);
			Agenda.add(trintasete, null);
			Agenda.add(trintaoito, null);
			Agenda.add(trintanove, null);
			Agenda.add(quarenta, null);
			Agenda.add(quarentaum, null);
			Agenda.add(quarentadois, null);
			Agenda.add(getDatahoje(), null);
			//Agenda.add(jLabel2161, null);
			Agenda.add(dezenove, null);
			Agenda.add(vinte, null);
			Agenda.add(getNomePaciente(), null);
//			Agenda.add(jLabel, null);
//			Agenda.add(jLabel1, null);
			Agenda.add(getMostrarNomeMedico(), null);
			Agenda.add(Explicativo, null);
			Agenda.add(Explicativo1, null);
			Agenda.add(getBuscaAg(), null);
			Agenda.add(getMostrarPront(), null);
			Agenda.add(getNomePaciente1(), null);
			Agenda.add(getNomePaciente2(), null);
			Agenda.add(getNomePaciente3(), null);
			Agenda.add(getNomePaciente4(), null);
			Agenda.add(getNomePaciente5(), null);
			Agenda.add(getNomePaciente6(), null);
			Agenda.add(getNomePaciente7(), null);
			Agenda.add(getNomePaciente8(), null);
			Agenda.add(getNomePaciente9(), null);
			Agenda.add(getNomePaciente10(), null);
			Agenda.add(getNomePaciente11(), null);
			Agenda.add(getNomePaciente12(), null);
			Agenda.add(getNomePaciente13(), null);
			Agenda.add(getNomePaciente14(), null);
			Agenda.add(getNomePaciente15(), null);
			Agenda.add(getNomePaciente16(), null);
			Agenda.add(getNomePaciente17(), null);
			Agenda.add(getNomePaciente18(), null);
			Agenda.add(getNomePaciente19(), null);
			Agenda.add(getNomePaciente20(), null);
			Agenda.add(getNomePaciente21(), null);
			Agenda.add(getNomePaciente22(), null);
			Agenda.add(getNomePaciente23(), null);
			Agenda.add(getNomePaciente24(), null);
			Agenda.add(getNomePaciente25(), null);
			Agenda.add(getNomePaciente26(), null);
			Agenda.add(getNomePaciente27(), null);
			Agenda.add(getNomePaciente28(), null);
			Agenda.add(getNomePaciente29(), null);
			Agenda.add(getNomePaciente30(), null);
			Agenda.add(getNomePaciente31(), null);
			Agenda.add(getNomePaciente32(), null);
			Agenda.add(getNomePaciente33(), null);
			Agenda.add(getNomePaciente34(), null);
			Agenda.add(getNomePaciente35(), null);
			Agenda.add(getNomePaciente36(), null);
			Agenda.add(getNomePaciente37(), null);
			Agenda.add(getNomePaciente38(), null);
			Agenda.add(getNomePaciente39(), null);
			Agenda.add(getNomePaciente40(), null);
			Agenda.add(getNomePaciente41(), null);
			Agenda.add(getMostrarPront1(), null);
			Agenda.add(getMostrarPront2(), null);
			Agenda.add(getMostrarPront3(), null);
			Agenda.add(getMostrarPront4(), null);
			Agenda.add(getMostrarPront5(), null);
			Agenda.add(getMostrarPront6(), null);
			Agenda.add(getMostrarPront7(), null);
			Agenda.add(getMostrarPront8(), null);
			Agenda.add(getMostrarPront9(), null);
			Agenda.add(getMostrarPront10(), null);
			Agenda.add(getMostrarPront11(), null);
			Agenda.add(getMostrarPront12(), null);
			Agenda.add(getMostrarPront13(), null);
			Agenda.add(getMostrarPront14(), null);
			Agenda.add(getMostrarPront15(), null);
			Agenda.add(getMostrarPront16(), null);
			Agenda.add(getMostrarPront17(), null);
			Agenda.add(getMostrarPront18(), null);
			Agenda.add(getMostrarPront19(), null);
			Agenda.add(getMostrarPront20(), null);
			Agenda.add(getMostrarPront21(), null);
			Agenda.add(getMostrarPront22(), null);
			Agenda.add(getMostrarPront23(), null);
			Agenda.add(getMostrarPront24(), null);
			Agenda.add(getMostrarPront25(), null);
			Agenda.add(getMostrarPront26(), null);
			Agenda.add(getMostrarPront27(), null);
			Agenda.add(getMostrarPront28(), null);
			Agenda.add(getMostrarPront29(), null);
			Agenda.add(getMostrarPront30(), null);
			Agenda.add(getMostrarPront31(), null);
			Agenda.add(getMostrarPront32(), null);
			Agenda.add(getMostrarPront33(), null);
			Agenda.add(getMostrarPront34(), null);
			Agenda.add(getMostrarPront35(), null);
			Agenda.add(getMostrarPront36(), null);
			Agenda.add(getMostrarPront37(), null);
			Agenda.add(getMostrarPront38(), null);
			Agenda.add(getMostrarPront39(), null);
			Agenda.add(getMostrarPront40(), null);
			Agenda.add(getMostrarPront41(), null);
			//Agenda.add(getMostrarNomeMedico(), null);
			Agenda.add(getBotaoExcluir(), null);  // Generated
			Agenda.add(getBotaoExcluir1(), null);  // Generated
			Agenda.add(getBotaoExcluir2(), null);  // Generated
			Agenda.add(getBotaoExcluir3(), null);  // Generated
			Agenda.add(getBotaoExcluir4(), null);  // Generated
			Agenda.add(getBotaoExcluir5(), null);  // Generated
			Agenda.add(getBotaoExcluir6(), null);  // Generated
			Agenda.add(getBotaoExcluir7(), null);  // Generated
			Agenda.add(getBotaoExcluir8(), null);  // Generated
			Agenda.add(getBotaoExcluir9(), null);  // Generated
			Agenda.add(getBotaoExcluir10(), null);  // Generated
			Agenda.add(getBotaoExcluir11(), null);  // Generated
			Agenda.add(getBotaoExcluir12(), null);  // Generated
			Agenda.add(getBotaoExcluir13(), null);  // Generated
			Agenda.add(getBotaoExcluir14(), null);  // Generated
			Agenda.add(getBotaoExcluir15(), null);  // Generated
			Agenda.add(getBotaoExcluir16(), null);  // Generated
			Agenda.add(getBotaoExcluir17(), null);  // Generated
			Agenda.add(getBotaoExcluir18(), null);  // Generated
			Agenda.add(getBotaoExcluir19(), null);  // Generated
			Agenda.add(getBotaoExcluir20(), null);  // Generated
			Agenda.add(getBotaoExcluir21(), null);  // Generated
			Agenda.add(getBotaoExcluir22(), null);  // Generated
			Agenda.add(getBotaoExcluir23(), null);  // Generated
			Agenda.add(getBotaoExcluir24(), null);  // Generated
			Agenda.add(getBotaoExcluir25(), null);  // Generated
			Agenda.add(getBotaoExcluir26(), null);  // Generated
			Agenda.add(getBotaoExcluir27(), null);  // Generated
			Agenda.add(getBotaoExcluir28(), null);  // Generated
			Agenda.add(getBotaoExcluir29(), null);  // Generated
			Agenda.add(getBotaoExcluir30(), null);  // Generated
			Agenda.add(getBotaoExcluir31(), null);  // Generated
			Agenda.add(getBotaoExcluir32(), null);  // Generated
			Agenda.add(getBotaoExcluir33(), null);  // Generated
			Agenda.add(getBotaoExcluir34(), null);  // Generated
			Agenda.add(getBotaoExcluir35(), null);  // Generated
			Agenda.add(getBotaoExcluir36(), null);  // Generated
			Agenda.add(getBotaoExcluir37(), null);  // Generated
			Agenda.add(getBotaoExcluir38(), null);  // Generated
			Agenda.add(getBotaoExcluir39(), null);  // Generated
			Agenda.add(getBotaoExcluir40(), null);  // Generated
			Agenda.add(getBotaoExcluir41(), null);  // Generated

		}
		return Agenda;
	}
	/**
	 * This method initializes Datahoje	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getDatahoje() {
		if (Datahoje == null) {
			Datahoje = new JTextField();
			Datahoje.setBounds(new Rectangle(638, 6, 83, 26));
		}
		return Datahoje;
	}
	/**
	 * This method initializes Mostrarnomem�dico	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarNomeMedico() {
		if (MostrarNomeMedico == null) {
			MostrarNomeMedico = new JTextField();
			MostrarNomeMedico.setBounds(new Rectangle(202, 6, 296, 26));
		}
		return MostrarNomeMedico;
	}
	/**
	 * This method initializes BuscaAg	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getBuscaAg() {
		if (BuscaAg == null) {
			BuscaAg = new JButton();
			BuscaAg.setBounds(new Rectangle(731, 6, 96, 26));
			BuscaAg.setFont(new Font("DialogInput", Font.BOLD, 12));
			BuscaAg.setText("Buscar");
			BuscaAg.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					preencher(data,nomeMedico);
				}
			});
		}
		return BuscaAg;
	}

	private void preencher(String data,String nomeMedico) {
		Agenda agendaDia = model.getConsulta(nomeMedico, data);
		for(Compromisso x: agendaDia.CompromissoList) {
			String prontuario = x.getProntuario();
			String nome = model.getPaciente(prontuario);
			switch (x.getHora()) {
			case 0:
				mostrarPront.setText(prontuario);
				nomePaciente.setText(nome);
				break;
			case 1:
				mostrarPront1.setText(prontuario);
				nomePaciente1.setText(nome);
				break;
			case 2:
				mostrarPront2.setText(prontuario);
				nomePaciente2.setText(nome);
				break;
			case 3:
				mostrarPront3.setText(prontuario);
				nomePaciente3.setText(nome);
				break;
			case 4:
				mostrarPront4.setText(prontuario);
				nomePaciente4.setText(nome);
				break;
			case 5:
				mostrarPront5.setText(prontuario);
				nomePaciente5.setText(nome);
				break;
			case 6:
				mostrarPront6.setText(prontuario);
				nomePaciente6.setText(nome);
				break;
			case 7:
				mostrarPront7.setText(prontuario);
				nomePaciente7.setText(nome);
				break;
			case 8:
				mostrarPront8.setText(prontuario);
				nomePaciente8.setText(nome);
				break;
			case 9:
				mostrarPront9.setText(prontuario);
				nomePaciente9.setText(nome);
				break;
			case 10:
				mostrarPront10.setText(prontuario);
				nomePaciente10.setText(nome);
				break;
			case 11:
				mostrarPront11.setText(prontuario);
				nomePaciente11.setText(nome);
				break;
			case 12:
				mostrarPront12.setText(prontuario);
				nomePaciente12.setText(nome);
				break;
			case 13:
				mostrarPront13.setText(prontuario);
				nomePaciente13.setText(nome);
				break;
			case 14:
				mostrarPront14.setText(prontuario);
				nomePaciente14.setText(nome);
				break;
			case 15:
				mostrarPront15.setText(prontuario);
				nomePaciente15.setText(nome);
				break;
			case 16:
				mostrarPront16.setText(prontuario);
				nomePaciente16.setText(nome);
				break;
			case 17:
				mostrarPront17.setText(prontuario);
				nomePaciente17.setText(nome);
				break;
			case 18:
				mostrarPront18.setText(prontuario);
				nomePaciente18.setText(nome);
				break;
			case 19:
				mostrarPront19.setText(prontuario);
				nomePaciente19.setText(nome);
				break;
			case 20:
				mostrarPront20.setText(prontuario);
				nomePaciente20.setText(nome);
				break;
			case 21:
				mostrarPront21.setText(prontuario);
				nomePaciente21.setText(nome);
				break;
			case 22:
				mostrarPront22.setText(prontuario);
				nomePaciente22.setText(nome);
				break;
			case 23:
				mostrarPront23.setText(prontuario);
				nomePaciente23.setText(nome);
				break;
			case 24:
				mostrarPront24.setText(prontuario);
				nomePaciente24.setText(nome);
				break;
			case 25:
				mostrarPront25.setText(prontuario);
				nomePaciente25.setText(nome);
				break;
			case 26:
				mostrarPront26.setText(prontuario);
				nomePaciente26.setText(nome);
				break;
			case 27:
				mostrarPront27.setText(prontuario);
				nomePaciente27.setText(nome);
				break;
			case 28:
				mostrarPront28.setText(prontuario);
				nomePaciente28.setText(nome);
				break;
			case 29:
				mostrarPront29.setText(prontuario);
				nomePaciente29.setText(nome);
				break;
			case 30:
				mostrarPront30.setText(prontuario);
				nomePaciente30.setText(nome);
				break;
			case 31:
				mostrarPront31.setText(prontuario);
				nomePaciente31.setText(nome);
				break;
			case 32:
				mostrarPront32.setText(prontuario);
				nomePaciente32.setText(nome);
				break;
			case 33:
				mostrarPront33.setText(prontuario);
				nomePaciente33.setText(nome);
				break;
			case 34:
				mostrarPront34.setText(prontuario);
				nomePaciente34.setText(nome);
				break;
			case 35:
				mostrarPront35.setText(prontuario);
				nomePaciente35.setText(nome);
				break;
			case 36:
				mostrarPront36.setText(prontuario);
				nomePaciente36.setText(nome);
				break;
			case 37:
				mostrarPront37.setText(prontuario);
				nomePaciente37.setText(nome);
				break;
			case 38:
				mostrarPront38.setText(prontuario);
				nomePaciente38.setText(nome);
				break;
			case 39:
				mostrarPront39.setText(prontuario);
				nomePaciente39.setText(nome);
				break;
			case 40:
				mostrarPront40.setText(prontuario);
				nomePaciente40.setText(nome);
				break;
			case 41:
				mostrarPront41.setText(prontuario);
				nomePaciente41.setText(nome);
				break;
			} //switch
		} //for
	}
	/**
	 * This method initializes nomePaciente	
	 * 	
	 * @return javax.swing.JTextField	

	 */


	private JTextField getNomePaciente() {
		if (nomePaciente == null) {
			nomePaciente = new JTextField();
			nomePaciente.setText("");
			nomePaciente.setBounds(new Rectangle(65, 38, 345, 24));
			nomePaciente.setLocation(new Point(65,38));
		}
		return nomePaciente;
	}
	/**
	 * This method initializes nomePaciente1	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente1() {
		if (nomePaciente1 == null) {
			nomePaciente1 = new JTextField();
			nomePaciente1.setBounds(new Rectangle(65, 62, 345, 24));
			nomePaciente1.setText("");

		}
		return nomePaciente1;
	}
	/**
	 * This method initializes nomePaciente2	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente2() {
		if (nomePaciente2 == null) {
			nomePaciente2 = new JTextField();
			nomePaciente2.setBounds(new Rectangle(65, 86, 345, 24));
			nomePaciente2.setText("");
		}
		return nomePaciente2;
	}
	/**
	 * This method initializes nomePaciente3	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente3() {
		if (nomePaciente3 == null) {
			nomePaciente3 = new JTextField();
			nomePaciente3.setBounds(new Rectangle(65, 110, 345, 24));
			nomePaciente3.setText("");
		}
		return nomePaciente3;
	}
	/**
	 * This method initializes nomePaciente4	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente4() {
		if (nomePaciente4 == null) {
			nomePaciente4 = new JTextField();
			nomePaciente4.setBounds(new Rectangle(65, 134, 345, 24));
			nomePaciente4.setText("");
		}
		return nomePaciente4;
	}
	/**
	 * This method initializes nomePaciente5	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente5() {
		if (nomePaciente5 == null) {
			nomePaciente5 = new JTextField();
			nomePaciente5.setBounds(new Rectangle(65, 158, 345, 24));
			nomePaciente5.setText("");
		}
		return nomePaciente5;
	}
	/**
	 * This method initializes nomePaciente6	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente6() {
		if (nomePaciente6 == null) {
			nomePaciente6 = new JTextField();
			nomePaciente6.setBounds(new Rectangle(65, 182, 345, 24));
			nomePaciente6.setText("");
		}
		return nomePaciente6;
	}
	/**
	 * This method initializes nomePaciente7	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente7() {
		if (nomePaciente7 == null) {
			nomePaciente7 = new JTextField();
			nomePaciente7.setBounds(new Rectangle(65, 206, 345, 24));
			nomePaciente7.setText("");
		}
		return nomePaciente7;
	}
	/**
	 * This method initializes nomePaciente8	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente8() {
		if (nomePaciente8 == null) {
			nomePaciente8 = new JTextField();
			nomePaciente8.setBounds(new Rectangle(65, 230, 345, 24));
			nomePaciente8.setText("");
		}
		return nomePaciente8;
	}
	/**
	 * This method initializes nomePaciente9	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente9() {
		if (nomePaciente9 == null) {
			nomePaciente9 = new JTextField();
			nomePaciente9.setBounds(new Rectangle(65, 254, 345, 24));
			nomePaciente9.setText("");
		}
		return nomePaciente9;
	}
	/**
	 * This method initializes nomePaciente10	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente10() {
		if (nomePaciente10 == null) {
			nomePaciente10 = new JTextField();
			nomePaciente10.setBounds(new Rectangle(65, 278, 345, 24));
			nomePaciente10.setText("");
		}
		return nomePaciente10;
	}
	/**
	 * This method initializes nomePaciente11	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente11() {
		if (nomePaciente11 == null) {
			nomePaciente11 = new JTextField();
			nomePaciente11.setBounds(new Rectangle(65, 302, 345, 24));
			nomePaciente11.setText("");
		}
		return nomePaciente11;
	}
	/**
	 * This method initializes nomePaciente12	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente12() {
		if (nomePaciente12 == null) {
			nomePaciente12 = new JTextField();
			nomePaciente12.setBounds(new Rectangle(65, 326, 345, 24));
			nomePaciente12.setText("");
		}
		return nomePaciente12;
	}
	/**
	 * This method initializes nomePaciente13	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente13() {
		if (nomePaciente13 == null) {
			nomePaciente13 = new JTextField();
			nomePaciente13.setBounds(new Rectangle(65, 350, 345, 24));
			nomePaciente13.setText("");
		}
		return nomePaciente13;
	}
	/**
	 * This method initializes nomePaciente14	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente14() {
		if (nomePaciente14 == null) {
			nomePaciente14 = new JTextField();
			nomePaciente14.setBounds(new Rectangle(65, 374, 345, 24));
			nomePaciente14.setText("");
		}
		return nomePaciente14;
	}
	/**
	 * This method initializes nomePaciente15	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente15() {
		if (nomePaciente15 == null) {
			nomePaciente15 = new JTextField();
			nomePaciente15.setBounds(new Rectangle(65, 398, 345, 24));
			nomePaciente15.setText("");
		}
		return nomePaciente15;
	}
	/**
	 * This method initializes nomePaciente16	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente16() {
		if (nomePaciente16 == null) {
			nomePaciente16 = new JTextField();
			nomePaciente16.setBounds(new Rectangle(65, 422, 345, 24));
			nomePaciente16.setText("");
		}
		return nomePaciente16;
	}
	/**
	 * This method initializes nomePaciente17	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente17() {
		if (nomePaciente17 == null) {
			nomePaciente17 = new JTextField();
			nomePaciente17.setBounds(new Rectangle(65, 446, 345, 24));
			nomePaciente17.setText("");
		}
		return nomePaciente17;
	}
	/**
	 * This method initializes nomePaciente18	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente18() {
		if (nomePaciente18 == null) {
			nomePaciente18 = new JTextField();
			nomePaciente18.setBounds(new Rectangle(65, 470, 345, 24));
			nomePaciente18.setText("");
		}
		return nomePaciente18;
	}
	/**
	 * This method initializes nomePaciente19	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente19() {
		if (nomePaciente19 == null) {
			nomePaciente19 = new JTextField();
			nomePaciente19.setBounds(new Rectangle(65, 494, 345, 24));
			nomePaciente19.setText("");
		}
		return nomePaciente19;
	}
	/**
	 * This method initializes nomePaciente20	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente20() {
		if (nomePaciente20 == null) {
			nomePaciente20 = new JTextField();
			nomePaciente20.setBounds(new Rectangle(65, 518, 345, 24));
			nomePaciente20.setText("");
		}
		return nomePaciente20;
	}
	/**
	 * This method initializes nomePaciente21	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente21() {
		if (nomePaciente21 == null) {
			nomePaciente21 = new JTextField();
			nomePaciente21.setBounds(new Rectangle(65,542, 345, 24));
			nomePaciente21.setText("");
		}
		return nomePaciente21;
	}
	/**
	 * This method initializes nomePaciente22	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente22() {
		if (nomePaciente22 == null) {
			nomePaciente22 = new JTextField();
			nomePaciente22.setBounds(new Rectangle(65, 566, 345, 24));
			nomePaciente22.setText("");
		}
		return nomePaciente22;
	}
	/**
	 * This method initializes nomePaciente23	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente23() {
		if (nomePaciente23 == null) {
			nomePaciente23 = new JTextField();
			nomePaciente23.setBounds(new Rectangle(65, 590, 345, 24));
			nomePaciente23.setText("");
		}
		return nomePaciente23;
	}
	/**
	 * This method initializes nomePaciente24	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente24() {
		if (nomePaciente24 == null) {
			nomePaciente24 = new JTextField();
			nomePaciente24.setBounds(new Rectangle(65, 614, 345, 24));
			nomePaciente24.setText("");
		}
		return nomePaciente24;
	}
	/**
	 * This method initializes nomePaciente25	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente25() {
		if (nomePaciente25 == null) {
			nomePaciente25 = new JTextField();
			nomePaciente25.setBounds(new Rectangle(65, 638, 345, 24));
			nomePaciente25.setText("");
		}
		return nomePaciente25;
	}
	/**
	 * This method initializes nomePaciente26	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente26() {
		if (nomePaciente26 == null) {
			nomePaciente26 = new JTextField();
			nomePaciente26.setBounds(new Rectangle(65, 662, 345, 24));
			nomePaciente26.setText("");
		}
		return nomePaciente26;
	}
	/**
	 * This method initializes nomePaciente27	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente27() {
		if (nomePaciente27 == null) {
			nomePaciente27 = new JTextField();
			nomePaciente27.setBounds(new Rectangle(65, 686, 345, 24));
			nomePaciente27.setText("");
		}
		return nomePaciente27;
	}
	/**
	 * This method initializes nomePaciente28	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente28() {
		if (nomePaciente28 == null) {
			nomePaciente28 = new JTextField();
			nomePaciente28.setBounds(new Rectangle(65, 710, 345, 24));
			nomePaciente28.setText("");
		}
		return nomePaciente28;
	}
	/**
	 * This method initializes nomePaciente29	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente29() {
		if (nomePaciente29 == null) {
			nomePaciente29 = new JTextField();
			nomePaciente29.setBounds(new Rectangle(65, 734, 345, 24));
			nomePaciente29.setText("");
		}
		return nomePaciente29;
	}
	/**
	 * This method initializes nomePaciente30	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente30() {
		if (nomePaciente30 == null) {
			nomePaciente30 = new JTextField();
			nomePaciente30.setBounds(new Rectangle(65, 758, 345, 24));
			nomePaciente30.setText("");
		}
		return nomePaciente30;
	}
	/**
	 * This method initializes nomePaciente31	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente31() {
		if (nomePaciente31 == null) {
			nomePaciente31 = new JTextField();
			nomePaciente31.setBounds(new Rectangle(65, 782, 345, 24));
			nomePaciente31.setText("");
		}
		return nomePaciente31;
	}
	/**
	 * This method initializes nomePaciente32	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente32() {
		if (nomePaciente32 == null) {
			nomePaciente32 = new JTextField();
			nomePaciente32.setBounds(new Rectangle(65, 806, 345, 24));
			nomePaciente32.setText("");
		}
		return nomePaciente32;
	}
	/**
	 * This method initializes nomePaciente33	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente33() {
		if (nomePaciente33 == null) {
			nomePaciente33 = new JTextField();
			nomePaciente33.setBounds(new Rectangle(65, 830, 345, 24));
			nomePaciente33.setText("");
		}
		return nomePaciente33;
	}
	/**
	 * This method initializes nomePaciente34	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente34() {
		if (nomePaciente34 == null) {
			nomePaciente34 = new JTextField();
			nomePaciente34.setBounds(new Rectangle(65, 854, 345, 24));
			nomePaciente34.setText("");
		}
		return nomePaciente34;
	}
	/**
	 * This method initializes nomePaciente35	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente35() {
		if (nomePaciente35 == null) {
			nomePaciente35 = new JTextField();
			nomePaciente35.setBounds(new Rectangle(65, 878, 345, 24));
			nomePaciente35.setText("");
		}
		return nomePaciente35;
	}
	/**
	 * This method initializes nomePaciente36	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente36() {
		if (nomePaciente36 == null) {
			nomePaciente36 = new JTextField();
			nomePaciente36.setBounds(new Rectangle(65, 902, 345, 24));
			nomePaciente36.setText("");
		}
		return nomePaciente36;
	}
	/**
	 * This method initializes nomePaciente37	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente37() {
		if (nomePaciente37 == null) {
			nomePaciente37 = new JTextField();
			nomePaciente37.setBounds(new Rectangle(65, 926, 345, 24));
			nomePaciente37.setText("");
		}
		return nomePaciente37;
	}
	/**
	 * This method initializes nomePaciente38	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente38() {
		if (nomePaciente38 == null) {
			nomePaciente38 = new JTextField();
			nomePaciente38.setBounds(new Rectangle(65, 950, 345, 24));
			nomePaciente38.setText("");
		}
		return nomePaciente38;
	}
	/**
	 * This method initializes nomePaciente39	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente39() {
		if (nomePaciente39 == null) {
			nomePaciente39 = new JTextField();
			nomePaciente39.setBounds(new Rectangle(65, 974, 345, 24));
			nomePaciente39.setText("");
		}
		return nomePaciente39;
	}
	/**
	 * This method initializes nomePaciente40	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente40() {
		if (nomePaciente40 == null) {
			nomePaciente40 = new JTextField();
			nomePaciente40.setBounds(new Rectangle(65, 998, 345, 24));
			nomePaciente40.setText("");
		}
		return nomePaciente40;
	}
	/**
	 * This method initializes nomePaciente41	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomePaciente41() {
		if (nomePaciente41 == null) {
			nomePaciente41 = new JTextField();
			nomePaciente41.setBounds(new Rectangle(65, 1022, 345, 24));
			nomePaciente41.setText("");
		}
		return nomePaciente41;
	}
	/**
	 * This method initializes mostrarPront	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront() {
		if (mostrarPront == null) {
			mostrarPront = new JTextField();
			mostrarPront.setBounds(new Rectangle(420, 38, 301, 24));
			mostrarPront.setLocation(new Point(420,38));

			//Capturando o esquema
			mostrarPront.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=0;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront.getText();

					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente.setText(nome);

				}
			});
		}
		return mostrarPront;
	}
	/**
	 * This method initializes mostrarPront1	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront1() {
		if (mostrarPront1 == null) {
			mostrarPront1 = new JTextField();
			mostrarPront1.setBounds(new Rectangle(420, 62, 301, 24));
			mostrarPront1.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=1;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront1.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente1.setText(nome);

				}
			});
		}
		return mostrarPront1;
	}
	/**
	 * This method initializes mostrarPront2	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront2() {
		if (mostrarPront2 == null) {
			mostrarPront2 = new JTextField();
			mostrarPront2.setBounds(new Rectangle(420, 86, 301, 24));
			mostrarPront2.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=2;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront2.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente1.setText(nome);

				}
			});
		}
		return mostrarPront2;
	}
	/**
	 * This method initializes mostrarPront3	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront3() {
		if (mostrarPront3 == null) {
			mostrarPront3 = new JTextField();
			mostrarPront3.setBounds(new Rectangle(420, 110, 301, 24));
			mostrarPront3.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=3;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront3.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente3.setText(nome);

				}
			});
		}
		return mostrarPront3;
	}
	/**
	 * This method initializes mostrarPront4	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront4() {
		if (mostrarPront4 == null) {
			mostrarPront4 = new JTextField();
			mostrarPront4.setBounds(new Rectangle(420, 134, 301, 24));
			mostrarPront4.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=3;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront3.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente4.setText(nome);

				}
			});
		}
		return mostrarPront4;
	}
	/**
	 * This method initializes mostrarPront5	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront5() {
		if (mostrarPront5 == null) {
			mostrarPront5 = new JTextField();
			mostrarPront5.setBounds(new Rectangle(420, 158, 301, 24));
			mostrarPront5.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=5;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront5.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente5.setText(nome);

				}
			});
		}
		return mostrarPront5;
	}
	/**
	 * This method initializes mostrarPront6	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront6() {
		if (mostrarPront6 == null) {
			mostrarPront6 = new JTextField();
			mostrarPront6.setBounds(new Rectangle(420, 182, 301, 24));
			mostrarPront6.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=6;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront6.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente6.setText(nome);

				}
			});
		}
		return mostrarPront6;
	}
	/**
	 * This method initializes mostrarPront7	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront7() {
		if (mostrarPront7 == null) {
			mostrarPront7 = new JTextField();
			mostrarPront7.setBounds(new Rectangle(420, 206, 301, 24));
			mostrarPront7.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=7;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront7.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente7.setText(nome);

				}
			});
		}
		return mostrarPront7;
	}
	/**
	 * This method initializes mostrarPront8	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront8() {
		if (mostrarPront8 == null) {
			mostrarPront8 = new JTextField();
			mostrarPront8.setBounds(new Rectangle(420, 230, 301, 24));
			mostrarPront8.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=8;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront8.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente8.setText(nome);

				}
			});
		}
		return mostrarPront8;
	}
	/**
	 * This method initializes mostrarPront9	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront9() {
		if (mostrarPront9 == null) {
			mostrarPront9 = new JTextField();
			mostrarPront9.setBounds(new Rectangle(420, 254, 301, 24));
			mostrarPront9.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=9;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront9.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente9.setText(nome);

				}
			});
		}
		return mostrarPront9;
	}
	/**
	 * This method initializes mostrarPront10	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront10() {
		if (mostrarPront10 == null) {
			mostrarPront10 = new JTextField();
			mostrarPront10.setBounds(new Rectangle(420, 278, 301, 24));
			mostrarPront10.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=10;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront10.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente10.setText(nome);

				}
			});
		}
		return mostrarPront10;
	}
	/**
	 * This method initializes mostrarPront11	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront11() {
		if (mostrarPront11 == null) {
			mostrarPront11 = new JTextField();
			mostrarPront11.setBounds(new Rectangle(420, 302, 301, 24));
			mostrarPront11.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=11;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront11.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente11.setText(nome);

				}
			});
		}
		return mostrarPront11;
	}
	/**
	 * This method initializes mostrarPront12	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront12() {
		if (mostrarPront12 == null) {
			mostrarPront12 = new JTextField();
			mostrarPront12.setBounds(new Rectangle(420, 326, 301, 24));
			mostrarPront12.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=12;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront12.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente12.setText(nome);

				}
			});
		}
		return mostrarPront12;
	}
	/**
	 * This method initializes mostrarPront13	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront13() {
		if (mostrarPront13 == null) {
			mostrarPront13 = new JTextField();
			mostrarPront13.setBounds(new Rectangle(420, 350, 301, 24));
			mostrarPront13.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=13;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront13.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente13.setText(nome);

				}
			});
		}
		return mostrarPront13;
	}
	/**
	 * This method initializes mostrarPront14	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront14() {
		if (mostrarPront14 == null) {
			mostrarPront14 = new JTextField();
			mostrarPront14.setBounds(new Rectangle(420, 374, 301, 24));
			mostrarPront14.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=14;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront14.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente14.setText(nome);

				}
			});
		}
		return mostrarPront14;
	}
	/**
	 * This method initializes mostrarPront15	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront15() {
		if (mostrarPront15 == null) {
			mostrarPront15 = new JTextField();
			mostrarPront15.setBounds(new Rectangle(420, 398, 301, 24));
			mostrarPront15.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=15;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront15.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente15.setText(nome);

				}
			});
		}

		return mostrarPront15;
	}
	/**
	 * This method initializes mostrarPront16	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront16() {
		if (mostrarPront16 == null) {
			mostrarPront16 = new JTextField();
			mostrarPront16.setBounds(new Rectangle(420, 422, 301, 24));
			mostrarPront16.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=16;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront16.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente16.setText(nome);

				}
			});
		}
		return mostrarPront16;
	}
	/**
	 * This method initializes mostrarPront17	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront17() {
		if (mostrarPront17 == null) {
			mostrarPront17 = new JTextField();
			mostrarPront17.setBounds(new Rectangle(420, 446, 301, 24));
			mostrarPront17.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=17;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront17.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente17.setText(nome);
				}
			});
		}
		return mostrarPront17;
	}
	/**
	 * This method initializes mostrarPront18	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront18() {
		if (mostrarPront18 == null) {
			mostrarPront18 = new JTextField();
			mostrarPront18.setBounds(new Rectangle(420, 470, 301, 24));
			mostrarPront18.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=18;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront18.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente18.setText(nome);

				}
			});
		}
		return mostrarPront18;
	}
	/**
	 * This method initializes mostrarPront19	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront19() {
		if (mostrarPront19 == null) {
			mostrarPront19 = new JTextField();
			mostrarPront19.setBounds(new Rectangle(420, 494, 301, 24));
			mostrarPront19.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=19;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront19.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente19.setText(nome);

				}
			});
		}
		return mostrarPront19;
	}
	/**
	 * This method initializes mostrarPront20	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront20() {
		if (mostrarPront20 == null) {
			mostrarPront20 = new JTextField();
			mostrarPront20.setBounds(new Rectangle(420, 518, 301, 24));
			mostrarPront20.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=20;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront20.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente20.setText(nome);

				}
			});
		}
		return mostrarPront20;
	}
	/**
	 * This method initializes mostrarPront21	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront21() {
		if (mostrarPront21 == null) {
			mostrarPront21 = new JTextField();
			mostrarPront21.setBounds(new Rectangle(420, 542, 301, 24));
			mostrarPront21.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=21;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront21.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente21.setText(nome);

				}
			});
		}
		return mostrarPront21;
	}
	/**
	 * This method initializes mostrarPront22	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront22() {
		if (mostrarPront22 == null) {
			mostrarPront22 = new JTextField();
			mostrarPront22.setBounds(new Rectangle(420, 566, 301, 24));
			mostrarPront22.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=22;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront22.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente22.setText(nome);

				}
			});
		}
		return mostrarPront22;
	}
	/**
	 * This method initializes mostrarPront23	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront23() {
		if (mostrarPront23 == null) {
			mostrarPront23 = new JTextField();
			mostrarPront23.setBounds(new Rectangle(420, 590, 301, 24));
			mostrarPront23.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=23;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront23.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente23.setText(nome);

				}
			});
		}
		return mostrarPront23;
	}
	/**
	 * This method initializes mostrarPront24	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront24() {
		if (mostrarPront24 == null) {
			mostrarPront24 = new JTextField();
			mostrarPront24.setBounds(new Rectangle(420, 614, 301, 24));
			mostrarPront24.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=24;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront24.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente24.setText(nome);

				}
			});
		}
		return mostrarPront24;
	}
	/**
	 * This method initializes mostrarPront25	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront25() {
		if (mostrarPront25 == null) {
			mostrarPront25 = new JTextField();
			mostrarPront25.setBounds(new Rectangle(420, 638, 301, 24));
			mostrarPront25.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=25;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront25.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente25.setText(nome);

				}
			});
		}
		return mostrarPront25;
	}
	/**
	 * This method initializes mostrarPront26	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront26() {
		if (mostrarPront26 == null) {
			mostrarPront26 = new JTextField();
			mostrarPront26.setBounds(new Rectangle(420, 662, 301, 24));
			mostrarPront26.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=26;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront26.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente26.setText(nome);

				}
			});
		}
		return mostrarPront26;
	}
	/**
	 * This method initializes mostrarPront27	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront27() {
		if (mostrarPront27 == null) {
			mostrarPront27 = new JTextField();
			mostrarPront27.setBounds(new Rectangle(420, 686, 301, 24));
			mostrarPront27.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=27;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront27.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente27.setText(nome);

				}
			});
		}
		return mostrarPront27;
	}
	/**
	 * This method initializes mostrarPront28	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront28() {
		if (mostrarPront28 == null) {
			mostrarPront28 = new JTextField();
			mostrarPront28.setBounds(new Rectangle(420, 710, 301, 24));
			mostrarPront28.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=28;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront28.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente28.setText(nome);

				}
			});
		}
		return mostrarPront28;
	}
	/**
	 * This method initializes mostrarPront29	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront29() {
		if (mostrarPront29 == null) {
			mostrarPront29 = new JTextField();
			mostrarPront29.setBounds(new Rectangle(420, 734, 301, 24));
			mostrarPront29.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=29;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront29.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente29.setText(nome);

				}
			});
		}
		return mostrarPront29;
	}
	/**
	 * This method initializes mostrarPront30	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront30() {
		if (mostrarPront30 == null) {
			mostrarPront30 = new JTextField();
			mostrarPront30.setBounds(new Rectangle(420, 758, 301, 24));
			mostrarPront30.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=0;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront30.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente30.setText(nome);

				}
			});
		}
		return mostrarPront30;
	}
	/**
	 * This method initializes mostrarPront31	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront31() {
		if (mostrarPront31 == null) {
			mostrarPront31 = new JTextField();
			mostrarPront31.setBounds(new Rectangle(420, 782, 301, 24));
			mostrarPront31.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=0;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront31.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente31.setText(nome);

				}
			});
		}
		return mostrarPront31;
	}
	/**
	 * This method initializes mostrarPront32	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront32() {
		if (mostrarPront32 == null) {
			mostrarPront32 = new JTextField();
			mostrarPront32.setBounds(new Rectangle(420, 806, 301, 24));
			mostrarPront32.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=32;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront32.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente32.setText(nome);

				}
			});
		}
		return mostrarPront32;
	}
	/**
	 * This method initializes mostrarPront33	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront33() {
		if (mostrarPront33 == null) {
			mostrarPront33 = new JTextField();
			mostrarPront33.setBounds(new Rectangle(420, 830, 301, 24));
			mostrarPront33.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=33;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront33.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente33.setText(nome);

				}
			});
		}
		return mostrarPront33;
	}
	/**
	 * This method initializes mostrarPront34	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront34() {
		if (mostrarPront34 == null) {
			mostrarPront34 = new JTextField();
			mostrarPront34.setBounds(new Rectangle(420, 854, 301, 24));
			mostrarPront34.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=34;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront34.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente34.setText(nome);

				}
			});
		}
		return mostrarPront34;
	}
	/**
	 * This method initializes mostrarPront35	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront35() {
		if (mostrarPront35 == null) {
			mostrarPront35 = new JTextField();
			mostrarPront35.setBounds(new Rectangle(420, 878, 301, 24));
			mostrarPront35.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=35;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront35.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente35.setText(nome);

				}
			});
		}
		return mostrarPront35;
	}
	/**
	 * This method initializes mostrarPront36	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront36() {
		if (mostrarPront36 == null) {
			mostrarPront36 = new JTextField();
			mostrarPront36.setBounds(new Rectangle(420, 902, 301, 24));
			mostrarPront36.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=36;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront36.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente36.setText(nome);

				}
			});
		}
		return mostrarPront36;
	}
	/**
	 * This method initializes mostrarPront37	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront37() {
		if (mostrarPront37 == null) {
			mostrarPront37 = new JTextField();
			mostrarPront37.setBounds(new Rectangle(420, 926, 301, 24));
			mostrarPront37.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=37;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront37.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente37.setText(nome);

				}
			});
		}
		return mostrarPront37;
	}
	/**
	 * This method initializes mostrarPront38	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront38() {
		if (mostrarPront38 == null) {
			mostrarPront38 = new JTextField();
			mostrarPront38.setBounds(new Rectangle(420, 950, 301, 24));
			mostrarPront38.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=38;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront38.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente38.setText(nome);

				}
			});
		}
		return mostrarPront38;
	}
	/**
	 * This method initializes mostrarPront39	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront39() {
		if (mostrarPront39 == null) {
			mostrarPront39 = new JTextField();
			mostrarPront39.setBounds(new Rectangle(420, 974, 301, 24));
			mostrarPront39.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=39;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront39.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente39.setText(nome);

				}
			});
		}
		return mostrarPront39;
	}
	/**
	 * This method initializes mostrarPront40	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront40() {
		if (mostrarPront40 == null) {
			mostrarPront40 = new JTextField();
			mostrarPront40.setBounds(new Rectangle(420, 998, 301, 24));
			mostrarPront40.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=40;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront40.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente40.setText(nome);

				}
			});
		}
		return mostrarPront40;
	}
	/**
	 * This method initializes mostrarPront41	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getMostrarPront41() {
		if (mostrarPront41 == null) {
			mostrarPront41 = new JTextField();
			mostrarPront41.setBounds(new Rectangle(420, 1022, 301, 24));
			mostrarPront41.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()");

					int index=41;
					String data=Datahoje.getText();
					String nomeMedico=MostrarNomeMedico.getText();
					String prontuario=mostrarPront41.getText();
					model.insereConsulta(nomeMedico, prontuario,data,index);

					String nome = model.getPaciente(prontuario);
					nomePaciente41.setText(nome);

				}
			});
		}
		return mostrarPront41;
	}
	public void setAgenda(JDesktopPane agenda) {
		Agenda = agenda;
	}


	/**
	 * This method initializes botaoExcluir	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getBotaoExcluir() {
		if (botaoExcluir == null) {
			botaoExcluir = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir.setBounds(new Rectangle(731, 38, 86, 24));  // Generated
			botaoExcluir.setText("Excluir");  // Generated
			botaoExcluir.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=0;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir;
	}

	private JButton getBotaoExcluir1() {
		if (botaoExcluir1 == null) {
			botaoExcluir1 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir1.setBounds(new Rectangle(731, 62, 86, 24));  // Generated
			botaoExcluir1.setText("Excluir");  // Generated
			botaoExcluir1.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=1;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir1;
	}
	private JButton getBotaoExcluir2() {
		if (botaoExcluir2 == null) {
			botaoExcluir2 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir2.setBounds(new Rectangle(731, 86, 86, 24));  // Generated
			botaoExcluir2.setText("Excluir");  // Generated
			botaoExcluir2.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=2;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir2;
	}
	private JButton getBotaoExcluir3() {
		if (botaoExcluir3 == null) {
			botaoExcluir3 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir3.setBounds(new Rectangle(731, 110, 86, 24));  // Generated
			botaoExcluir3.setText("Excluir");  // Generated
			botaoExcluir3.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=3;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir3;
	}
	private JButton getBotaoExcluir4() {
		if (botaoExcluir4 == null) {
			botaoExcluir4 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir4.setBounds(new Rectangle(731, 134, 86, 24));  // Generated
			botaoExcluir4.setText("Excluir");  // Generated
			botaoExcluir4.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=4;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir4;
	}
	private JButton getBotaoExcluir5() {
		if (botaoExcluir5 == null) {
			botaoExcluir5 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir5.setBounds(new Rectangle(731, 158, 86, 24));  // Generated
			botaoExcluir5.setText("Excluir");  // Generated
			botaoExcluir5.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=5;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir5;
	}
	private JButton getBotaoExcluir6() {
		if (botaoExcluir6 == null) {
			botaoExcluir6 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir6.setBounds(new Rectangle(731, 182, 86, 24));  // Generated
			botaoExcluir6.setText("Excluir");  // Generated
			botaoExcluir6.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=6;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir6;
	}
	private JButton getBotaoExcluir7() {
		if (botaoExcluir7 == null) {
			botaoExcluir7 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir7.setBounds(new Rectangle(731, 206, 86, 24));  // Generated
			botaoExcluir7.setText("Excluir");  // Generated
			botaoExcluir7.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=7;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir7;
	}
	private JButton getBotaoExcluir8() {
		if (botaoExcluir8 == null) {
			botaoExcluir8 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir8.setBounds(new Rectangle(731, 230, 86, 24));  // Generated
			botaoExcluir8.setText("Excluir");  // Generated
			botaoExcluir8.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=8;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir8;
	}
	private JButton getBotaoExcluir9() {
		if (botaoExcluir9 == null) {
			botaoExcluir9 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir9.setBounds(new Rectangle(731, 254, 86, 24));  // Generated
			botaoExcluir9.setText("Excluir");  // Generated
			botaoExcluir9.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=9;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir9;
	}
	private JButton getBotaoExcluir10() {
		if (botaoExcluir10 == null) {
			botaoExcluir10 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir10.setBounds(new Rectangle(731, 278, 86, 24));  // Generated
			botaoExcluir10.setText("Excluir");  // Generated
			botaoExcluir10.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=10;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir10;
	}
	private JButton getBotaoExcluir11() {
		if (botaoExcluir11 == null) {
			botaoExcluir11 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir11.setBounds(new Rectangle(731, 302, 86, 24));  // Generated
			botaoExcluir11.setText("Excluir");  // Generated
			botaoExcluir11.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=11;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir11;
	}
	private JButton getBotaoExcluir12() {
		if (botaoExcluir12 == null) {
			botaoExcluir12 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir12.setBounds(new Rectangle(731, 326, 86, 24));  // Generated
			botaoExcluir12.setText("Excluir");  // Generated
			botaoExcluir12.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=12;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir12;
	}
	private JButton getBotaoExcluir13() {
		if (botaoExcluir13 == null) {
			botaoExcluir13 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir13.setBounds(new Rectangle(731, 350, 86, 24));  // Generated
			botaoExcluir13.setText("Excluir");  // Generated
			botaoExcluir13.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=13;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir13;
	}
	private JButton getBotaoExcluir14() {
		if (botaoExcluir14 == null) {
			botaoExcluir14 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir14.setBounds(new Rectangle(731, 374, 86, 24));  // Generated
			botaoExcluir14.setText("Excluir");  // Generated
			botaoExcluir14.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=14;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir14;
	}
	private JButton getBotaoExcluir15() {
		if (botaoExcluir15 == null) {
			botaoExcluir15 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir15.setBounds(new Rectangle(731, 398, 86, 24));  // Generated
			botaoExcluir15.setText("Excluir");  // Generated
			botaoExcluir15.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=15;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir15;
	}
	private JButton getBotaoExcluir16() {
		if (botaoExcluir16 == null) {
			botaoExcluir16 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir16.setBounds(new Rectangle(731, 422, 86, 24));  // Generated
			botaoExcluir16.setText("Excluir");  // Generated
			botaoExcluir16.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=16;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir16;
	}
	private JButton getBotaoExcluir17() {
		if (botaoExcluir17 == null) {
			botaoExcluir17 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir17.setBounds(new Rectangle(731, 446, 86, 24));  // Generated
			botaoExcluir17.setText("Excluir");  // Generated
			botaoExcluir17.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=17;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir17;
	}
	private JButton getBotaoExcluir18() {
		if (botaoExcluir18 == null) {
			botaoExcluir18 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir18.setBounds(new Rectangle(731, 470, 86, 24));  // Generated
			botaoExcluir18.setText("Excluir");  // Generated
			botaoExcluir18.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=18;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir18;
	}
	private JButton getBotaoExcluir19() {
		if (botaoExcluir19 == null) {
			botaoExcluir19 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir19.setBounds(new Rectangle(731, 494, 86, 24));  // Generated
			botaoExcluir19.setText("Excluir");  // Generated
			botaoExcluir19.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=19;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir19;
	}
	private JButton getBotaoExcluir20() {
		if (botaoExcluir20 == null) {
			botaoExcluir20 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir20.setBounds(new Rectangle(731, 518, 86, 24));  // Generated
			botaoExcluir20.setText("Excluir");  // Generated
			botaoExcluir20.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=20;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir20;
	}
	private JButton getBotaoExcluir21() {
		if (botaoExcluir21 == null) {
			botaoExcluir21 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir21.setBounds(new Rectangle(731, 542, 86, 24));  // Generated
			botaoExcluir21.setText("Excluir");  // Generated
			botaoExcluir21.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=21;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir21;
	}
	private JButton getBotaoExcluir22() {
		if (botaoExcluir22 == null) {
			botaoExcluir22 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir22.setBounds(new Rectangle(731, 566, 86, 24));  // Generated
			botaoExcluir22.setText("Excluir");  // Generated
			botaoExcluir22.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=22;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir22;
	}
	private JButton getBotaoExcluir23() {
		if (botaoExcluir23 == null) {
			botaoExcluir23 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir23.setBounds(new Rectangle(731, 590, 86, 24));  // Generated
			botaoExcluir23.setText("Excluir");  // Generated
			botaoExcluir23.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=23;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir23;
	}
	private JButton getBotaoExcluir24() {
		if (botaoExcluir24 == null) {
			botaoExcluir24 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir24.setBounds(new Rectangle(731, 614, 86, 24));  // Generated
			botaoExcluir24.setText("Excluir");  // Generated
			botaoExcluir24.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=24;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir24;
	}
	private JButton getBotaoExcluir25() {
		if (botaoExcluir25 == null) {
			botaoExcluir25 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir25.setBounds(new Rectangle(731, 638, 86, 24));  // Generated
			botaoExcluir25.setText("Excluir");  // Generated
			botaoExcluir25.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=25;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir25;
	}
	private JButton getBotaoExcluir26() {
		if (botaoExcluir26 == null) {
			botaoExcluir26 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir26.setBounds(new Rectangle(731, 662, 86, 24));  // Generated
			botaoExcluir26.setText("Excluir");  // Generated
			botaoExcluir26.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=26;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir26;
	}
	private JButton getBotaoExcluir27() {
		if (botaoExcluir27 == null) {
			botaoExcluir27 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir27.setBounds(new Rectangle(731, 686, 86, 24));  // Generated
			botaoExcluir27.setText("Excluir");  // Generated
			botaoExcluir27.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=27;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir27;
	}
	private JButton getBotaoExcluir28() {
		if (botaoExcluir28 == null) {
			botaoExcluir28 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir28.setBounds(new Rectangle(731, 710, 86, 24));  // Generated
			botaoExcluir28.setText("Excluir");  // Generated
			botaoExcluir28.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=28;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir28;
	}
	private JButton getBotaoExcluir29() {
		if (botaoExcluir29 == null) {
			botaoExcluir29 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir29.setBounds(new Rectangle(731, 734, 86, 24));  // Generated
			botaoExcluir29.setText("Excluir");  // Generated
			botaoExcluir29.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=29;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir29;
	}
	private JButton getBotaoExcluir30() {
		if (botaoExcluir30 == null) {
			botaoExcluir30 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir30.setBounds(new Rectangle(731, 758, 86, 24));  // Generated
			botaoExcluir30.setText("Excluir");  // Generated
			botaoExcluir30.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=30;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir30;
	}
	private JButton getBotaoExcluir31() {
		if (botaoExcluir31 == null) {
			botaoExcluir31 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir31.setBounds(new Rectangle(731, 782, 86, 24));  // Generated
			botaoExcluir31.setText("Excluir");  // Generated
			botaoExcluir31.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=31;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir31;
	}
	private JButton getBotaoExcluir32() {
		if (botaoExcluir32 == null) {
			botaoExcluir32 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir32.setBounds(new Rectangle(731, 806, 86, 24));  // Generated
			botaoExcluir32.setText("Excluir");  // Generated
			botaoExcluir32.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=32;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir32;
	}
	private JButton getBotaoExcluir33() {
		if (botaoExcluir33 == null) {
			botaoExcluir33 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir33.setBounds(new Rectangle(731, 830, 86, 24));  // Generated
			botaoExcluir33.setText("Excluir");  // Generated
			botaoExcluir33.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=33;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir33;
	}
	private JButton getBotaoExcluir34() {
		if (botaoExcluir34 == null) {
			botaoExcluir34 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir34.setBounds(new Rectangle(731, 854, 86, 24));  // Generated
			botaoExcluir34.setText("Excluir");  // Generated
			botaoExcluir34.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=34;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir34;
	}
	private JButton getBotaoExcluir35() {
		if (botaoExcluir35 == null) {
			botaoExcluir35 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir35.setBounds(new Rectangle(731, 878, 86, 24));  // Generated
			botaoExcluir35.setText("Excluir");  // Generated
			botaoExcluir35.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=35;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir35;
	}
	private JButton getBotaoExcluir36() {
		if (botaoExcluir36 == null) {
			botaoExcluir36 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir36.setBounds(new Rectangle(731, 902, 86, 24));  // Generated
			botaoExcluir36.setText("Excluir");  // Generated
			botaoExcluir36.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=36;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir36;
	}
	private JButton getBotaoExcluir37() {
		if (botaoExcluir37 == null) {
			botaoExcluir37 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir37.setBounds(new Rectangle(731, 926, 86, 24));  // Generated
			botaoExcluir37.setText("Excluir");  // Generated
			botaoExcluir37.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=37;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir37;
	}
	private JButton getBotaoExcluir38() {
		if (botaoExcluir38 == null) {
			botaoExcluir38 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir38.setBounds(new Rectangle(731, 950, 86, 24));  // Generated
			botaoExcluir38.setText("Excluir");  // Generated
			botaoExcluir38.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=38;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir38;
	}
	private JButton getBotaoExcluir39() {
		if (botaoExcluir39 == null) {
			botaoExcluir39 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir39.setBounds(new Rectangle(731, 974, 86, 24));  // Generated
			botaoExcluir39.setText("Excluir");  // Generated
			botaoExcluir39.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=39;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir39;
	}
	private JButton getBotaoExcluir40() {
		if (botaoExcluir40 == null) {
			botaoExcluir40 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir40.setBounds(new Rectangle(731, 998, 86, 24));  // Generated
			botaoExcluir40.setText("Excluir");  // Generated
			botaoExcluir40.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=40;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir40;
	}
	private JButton getBotaoExcluir41() {
		if (botaoExcluir41 == null) {
			botaoExcluir41 = new JButton();
			//420, 62, 301, 24
			//420, 38, 301, 24
			botaoExcluir41.setBounds(new Rectangle(731, 1022, 86, 24));  // Generated
			botaoExcluir41.setText("Excluir");  // Generated
			botaoExcluir41.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					int index=41;
					System.out.println("Exclusao acionada");
					excluir(index);
				}
			});
		}
		return botaoExcluir41;
	}

	public void excluir(int hora){
		String [] data = Datahoje.getText().split("/");
		String nome=MostrarNomeMedico.getText();
		int dia=Integer.parseInt(data[0]);
		int mes=Integer.parseInt(data[1]);
		int ano=Integer.parseInt(data[2]);
		model.removeConsulta(nome,dia,mes,ano,hora);
		nomePaciente.setText("");
		mostrarPront.setText("");
	}

	public static void main(String[] args) {
		AgendaControl oi = new AgendaControl();
		oi.setDefaultCloseOperation(EXIT_ON_CLOSE);
		oi.setVisible(true);
	}



	public AgendaModel getModel() {
		return model;
	}



	public void setModel(AgendaModel model) {
		this.model = model;
	}
}
